x86/LWP: Add LWP support for SVM guests
authorWei Huang <wei.huang2@amd.com>
Mon, 9 May 2011 10:40:42 +0000 (11:40 +0100)
committerWei Huang <wei.huang2@amd.com>
Mon, 9 May 2011 10:40:42 +0000 (11:40 +0100)
commit64f12e8f09934534180b05328c9408a49055acf0
tree89ac48f3e9d1bda5199f42e760a615eadcfbcee7
parent2dafae5693c4badaca9579ef4523888b2a29e3e6
x86/LWP: Add LWP support for SVM guests

This patch enables SVM to handle LWP related MSRs and CPUID. It
intercepts guests read/write to LWP_CFG. It also save/restore LWP_CFG
when guests touch this MSR. The LWP_CBADDR MSR is not intercepted
because this MSR is handled by xsave/xrstor.

Signed-off-by: Wei Huang <wei.huang2@amd.com>
xen/arch/x86/hvm/svm/svm.c
xen/arch/x86/hvm/svm/vmcb.c
xen/include/asm-x86/cpufeature.h
xen/include/asm-x86/hvm/svm/vmcb.h
xen/include/asm-x86/msr-index.h